<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="java.util.List" %>
<%@ page import="oneroom.admin.code.codeModel" %>
<jsp:useBean id="codeDao" scope="page" class="oneroom.admin.code.codeDao" />
<%
	int maincode = Integer.parseInt(request.getParameter("maincode") == "" ? "0" : request.getParameter("maincode") ) ;
	String dtlcode = request.getParameter("dtlcode")== null ? "" : request.getParameter("dtlcode") ;
	maincode = 400+maincode;
	List codeList = codeDao.getDtlList(maincode+"");
%>
	<select name="university2" id="university2" style="width:100px;">
<%
	for(int i = 0; i < codeList.size(); i++){
		codeModel mode = (codeModel)codeList.get(i);
%>
		<option value="<%=mode.getCode() %>" <%if(dtlcode.equals(mode.getCode())){out.print(" selected='selected' ");} %>><%=mode.getCodename() %></option>
<%
	}
%>
	</select>